import request from '@/utils/request'

// 协议列表
export function getDicAllList(data) {
  return request({
    url: '/adminapi/AgreementNew/getDictionaryValueList',
    method: 'post',
    data
  })
}
// 协议列表
export function getAgreementNewList(data) {
  return request({
    url: '/adminapi/AgreementNew/getAgreementList',
    method: 'post',
    data
  })
}

// 添加或者修改协议
export function SaveAgreementNew(data) {
  return request({
    url: '/adminapi/AgreementNew/saveAgreement',
    method: 'post',
    data
  })
}
// 删除协议
export function delAgreementNew(data) {
  return request({
    url: '/adminapi/AgreementNew/delAgreement',
    method: 'post',
    data
  })
}
// 协议详情
export function getAgreementNewInfo(data) {
  return request({
    url: '/adminapi/AgreementNew/getAgreementInfo',
    method: 'post',
    data
  })
}

// 获取协议分类数据
export function getCateLists(data) {
  return request({
    url: '/adminapi/AgreementNew/getCateList',
    method: 'post',
    data
  })
}
